package com.atguigu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication  //这是一个启动类
@EnableFeignClients(basePackages = "com.atguigu.yygh") //远程调用
@EnableDiscoveryClient    //这注册中心 nacos找到该启动类
@MapperScan(basePackages = "com.atguigu.mapper") //这是让启动类去扫描mapper包
// ,mapper接口继承了baseMapper ，baseMapper是mabatisPlus提供的单表操作接口
public class ServiceUserApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceUserApplication.class,args);

    }
}
